<%@page import="javafx.animation.KeyValue"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="RssEasy.Core.Encrypt"%>
<%@page import="Model.User.UserList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
   UserList up = new UserList(pageContext);
   up.request();
   String note = Encrypt.Md532(up.get("note"));
   CookieHelper cook = new CookieHelper(request, response);
   String key = cook.Get("key");
   String pwd =null; 
   if(note.equals(key)){
     pwd =Encrypt.Md532(up.get("account")+up.get("pwd"));
     up.remove("note");
     up.keyvalue("pwd",pwd);
     up.update().where("enterprise=? and account=?",up.get("enterprise"),up.get("account")).submit();
     out.print("1");
   }else{
     out.print("2");
   }
%>

 